package com.atmilan.quartz.model.entity.orange;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * orange商品sku
 * </p>
 *
 * @author wuzp
 * @since 2021-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orange_product_sku")
@ApiModel(value="OrangeProductSku对象", description="orange商品sku")
public class OrangeProductSku extends Model<OrangeProductSku> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品id")
    private String itemId;

    @ApiModelProperty(value = "规格id")
    private String skuId;

    @ApiModelProperty(value = "重量")
    private Double weight;

    @ApiModelProperty(value = "单位 例如：件、组、盒、支")
    private String unit;

    @ApiModelProperty(value = "单位对应的数量 与单位共用 如：1件、1组、1盒、1支")
    private Integer unitQuantity;

    @ApiModelProperty(value = "商品总数量")
    private Integer totalStock;

    @ApiModelProperty(value = "规格信息")
    private String skuValues;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
